<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //...args是rest参数
        function submit(...args) {
            console.log(args);
        }
        submit('a', 'b', 'c')
        //es5中arguments
        function get() {
            console.log(arguments);
        }
        get('s', 'd')
    </script>
</body>

</html>